import axios from 'axios'


export function startUpload(data) { //开始上传图片
  const url = baseURL + 'ttc.php/upload/UploadImages'
  let param = new FormData()
  param.append('file', data)
  return axios.post(url, param, {
    headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  }).then(res => {
    return res.data;
  })
}
